#!/bin/bash
## Update the content of the applet
## Application ##
cd etc
python setup-osx.py py2app # --alias
# According to the readme, pass --alias
# to setup.py to make a .app that uses symlinks instead and thus updates
# whenever code is saved. This is used for debugging.
## Documentation ##
cd ../TeX
pdflatex OTableau-doc.tex
## Disk Image ##
cd ..
# this part isn't really done, there need to be a lot more files
# like the example or something.
cp TeX/OTableau-doc.pdf etc/dist
hdiutil create -ov -volname 'OTableau 1.8' -srcfolder etc/dist dist/otableau-mac-1_8.dmg

## old ##
#cp *.py /Applications/OTableau.app/Contents/Resources/
#cp settings.ini /Applications/OTableau.app/Contents/Resources/
